import { NgModule }      from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';

import { AppComponent }  from './app.component';
import {LoginComponent} from "./login.component";
import {AppRoutingModule} from "./app-routing.module";

import {HttpModule} from "@angular/http";
import {FormsModule} from "@angular/forms";

import {ManageComponent} from "./manage/manage.component";
import {ManageRoutingModule} from "./manage/manage-routing.module";
import {CheckUserService} from "./check-user.service";
import {UserAuthService} from "./manage/user-auth.service";
import {UserLoginAuthService} from "./user-login-auth.service";
import {LogoutComponent} from "./logout.component";
import {ClassChangeDirective} from "./directives/class.directive";
import {MenuManageComponent} from "./manage/menu.component";
import {UploadSingleComponent} from "./upload/upload.component";
import {JSSBDownLoadComponent} from "./file-download/jssb.download.component";
import {AnnouncementComponent} from "./announcement/announcement.component";
import {ResetPasswordCompontent} from "./person/password/persion.reset.password.commponent";
import {TestComponent} from "./test/test.component";
import {ArticleManage} from "./article/article.manage.component";
import {ArticleService} from "./article/article.service";
import {ArticleWrite} from "./article/write/article.write.component";
import {ArticlesList} from "./article/list/article.list.component";

@NgModule({
    imports:  [
        BrowserModule,
        FormsModule,
        HttpModule,
        ManageRoutingModule,
        AppRoutingModule
    ],
    declarations: [

        ClassChangeDirective,


        AppComponent,
        LoginComponent,
        ManageComponent,
        LogoutComponent,

        MenuManageComponent,

        UploadSingleComponent,
        JSSBDownLoadComponent,

        //文章相关
        ArticleManage,
        ArticleWrite,
        ArticlesList,

        AnnouncementComponent,
        ResetPasswordCompontent,


        TestComponent
    ],
    providers:[
        CheckUserService,

        //操作验证的
        UserAuthService,
        UserLoginAuthService,

        //文章
       /* ArticleService*/
    ],


    bootstrap:    [ AppComponent ]
})
export class AppModule { }
